import { createMemoryHistory, createRouter } from 'vue-router'
import Home from '../components/Outdoor.vue'       // 你的首页组件
import Indoor from '../components/InDoor.vue'   // 要跳转的目标组件

const routes = [
  { path: '/', component: Home },
  { path: '/indoor', component: Indoor },
]

const router = createRouter({
  history: createMemoryHistory(),
  routes,
})

export default router
